package com.tsp_tux.demo.Dao;

import com.tsp_tux.demo.Entity.Resource;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author 沈育洋
 */
public interface ResourceRepository extends JpaRepository<Resource, Integer> {
    List<Resource> findByNameLike(String search);
    Resource findByRid(int rid);
    List<Resource> findByAid(int aid);
    List<Resource> findBySid(int sid);
}
